package com.zdxlz.fcmp.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zdxlz.fcmp.common.mybatis.base.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import static com.zdxlz.fcmp.common.core.constant.ParameterVerifyMsgConstants.*;

/**
 * <p>
 * 量子密码资源配置表
 * </p>
 *
 * @author: aman
 * @since 2025-02-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("kms_config")
public class KmsConfigEntity extends BaseEntity {

    /**
     * KMS名称
     */
    @NotBlank(message = KMS_NAME_VERIFY_MSG)
    @TableField("name")
    private String name;

    /**
     * KMS地址信息
     */
    @NotBlank(message = KMSADDRESS_VERIFY_MSG)
    @TableField("kms_address")
    private String kmsAddress;

    /**
     * 区域编码
     */
    @NotBlank(message = AREACODE_VERIFY_MSG)
    @TableField("area_code")
    private String areaCode;

    /**
     * 设备地理位置
     */
    @NotBlank(message = DEVICELOCAL_VERIFY_MSG)
    @TableField("device_local")
    private String deviceLocal;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
}
